//
//  IconView.m
//  kyMusicPlayer
//
//  Created by 翁科宇 on 2018/5/17.
//  Copyright © 2018年 翁科宇. All rights reserved.
//

#import "IconView.h"

@implementation IconView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
    }
    return self;
}

- (void)setAlbumImage:(UIImage *)image{
    _imageView = [[RoImageView alloc] initWithFrame:CGRectMake(self.frame.size.width * 0.1, self.frame.size.height/ 2 - self.frame.size.width * 0.4, self.frame.size.width * 0.8, self.frame.size.width * 0.8)];
    _imageView.image = image;
    _imageView.clipsToBounds = YES;
    _imageView.layer.cornerRadius = self.frame.size.width * 0.4;
    [self addSubview:_imageView];
    
}
@end
